var tbody = $("#mesStatus");
$(function(){
    $.getJSON(baseUrl + "/sms/stat",function(json){
       if(json.meta.code == "200"){
           var data = json.data;
           var tr = "";

           tr += "<tr>";
           tr += "<td>";
           tr += data.numOfSend;
           tr += "</td>";

           tr += "<td class='red'>";
           tr +=  data.numOfBalance;
           tr += "</td>";

           tr += "<td>";
           tr +=  18545611234;
           tr += "</td>";

           tr += "</tr>";

           tbody.append(tr);

           if(data.numOfBalance < 10){
               alert("短信不足10条！")
           }
       }

    })



});